<?php $ArAnnouncements = Dracosys::getSessionValue(SESSION_INTERFACE, 'AnnouncementsList'); ?>
<section id="AnnouncementList">
<h2>Listagem de Comunicados</h2>
    <table id="AnnouncementList_annoncement" class="list">
        <thead>
            <tr>
                <th>Titulo</th>
                <th>Cliente</th>
                <th>Tipo de Comunicado</th>
                <th>Visualizar</th>
            </tr>
        </thead>
        <tfoot>
        </tfoot>
         <?php
                if(!empty($ArAnnouncements)):
                foreach($ArAnnouncements as $Announcement):
            ?>
                <tr>
                    <td><?=$Announcement->getStTitulo();?></td>
                    <td><?=$Announcement->getCliente()->getCustomerName(); ?></td>
                    <td><?=$Announcement->getEnTipoComunicado();?></td>
                    <td>
                        <a href="<?=DRA_URL?>comunicado/visualizar-comunicado/id/<?=$Announcement->getIDComunicado();?>"  title="Visualizar">
                            <img src="<?= DRA_VIEW_URL ?>images/descricao.png" />
                        </a>
                    </td>
                </tr>
            <?php endforeach;
            else:
            ?>
                <tr class="nodata">
                    <td colspan="4">
                        Nenhum resultado foi encontrado!
                    </td>
                </tr>
            <?php

            endif;
            ?>
        </tbody>
    </table>
</section>